import App from './App'
import config from '@/config'
import apis from '@/apis/apis.js'
import store from '@/store/index.js'
// #ifndef VUE3
import Vue from 'vue'
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
Vue.config.productionTip = false
// apis
Vue.prototype.$apis = apis
// 拼接网络地址图片
Vue.prototype.$imgUrl = (url) => {
	return config.imgUrl + url
}
App.mpType = 'app'
const app = new Vue({
	store,
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	app.use(store)
	return {
		app
	}
}
// #endif